<div>
    <form style="margin-top: 20px">
            <label for="search">查询：</label>
            <input type="text"  id="search"  ng-model="search" style="width: 80%;height: 33px;line-height:33px">
    </form>
    <table class="table table-striped">
        <thead>
            <tr>
                <th class="text-center">姓名</th>
                <th class="text-center">性别</th>
                <th class="text-center">年龄</th>
                <th class="text-center">专业</th>
            </tr>
        </thead>

        <tbody>
            <tr ng-repeat="a in data | filter:search">
                <td>{{a.name}}</td>
                <td>{{a.sex}}</td>
                <td>{{a.age}}</td>
                <td>{{a.major}}</td>
            </tr>
        </tbody>
    </table>
</div>
